xl: fixes for do_daemonize
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 22 Nov 2013 11:54:09 +0000 (12:54 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 26 Nov 2013 10:57:21 +0000 (10:57 +0000)
commited8c9047f6fc6d28fc27d37576ec8c8c1be68efe
treed4b74e15081ab0c2cf9d253552ed1c948c29b151
parent3b88d95e9c0a5ff91d5b60e94d81f1982af57e7f
xl: fixes for do_daemonize

Fix usage of CHK_ERRNO in do_daemonize and also remove the usage of a
bogus for(;;).

Coverity-ID: 1130516 and 1130520
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>
tools/libxl/xl_cmdimpl.c